home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / configure.h < prev    next >
C/C++ Source or Header  |  1996-07-28  |  3KB  |  99 lines

  1. #ifndef _configure_H_
  2. #define _configure_H_
  3.  
  4. /*
  5.     Configuration options for callback: optionally change values
  6.     mentioned here to your own choices, and run the
  7.     
  8.         build progs
  9.     
  10.     command
  11.     
  12. */
  13.     
  14. /* In lib/config/configdata.c: 
  15.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. */
  17.  
  18. /* Max number of times callback tries to call back */
  19. #define NTRIES              3       
  20.      
  21. /* What is the name of the modem-process (without the ttySx-suffix) */
  22. #define MODEMPROCESS        "/sbin/modem"
  23.  
  24. /* What is the name of the receiver of mail ? (I don't like this, but */
  25. /* guess it's available)                                              */
  26. #define EMAIL_ADDRESS       "root"
  27.  
  28. /* What is the name of the login-program */
  29. #define LOGIN_PROGRAM       "/bin/login" 
  30.  
  31. /* What is the name of the mgetty-config file for callback ? */
  32. #define MGETTY_PATH         "/usr/local/etc/mgetty+sendfax/mgetty.config"
  33.  
  34. /* What is the name of the base-path for the callback-configuration files ? */
  35. /* Note: the default MUST have a trailing /                                 */
  36. #define BASE_PATH           "/conf/callback/"
  37.     
  38. /* In: lib/dbase/dbasedata.c: 
  39.    ~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. */
  41.  
  42. /* How many seconds may a callback-file exist ? */
  43. #define MAXAGE              300
  44.                                  
  45. /* lib/log/logdata.c */
  46.  
  47. /* What is the name of the standard logfile ? */
  48. #define LOGFILENAME         "/var/log/callback.log"
  49.  
  50. /* What is the name of the diallog-file ? */
  51. #define DIALLOGFILENAME     "/dev/null"
  52.  
  53. /* What is the name of the panic logfile ? */
  54. #define PANICLOGFILE        "/dev/console"
  55.  
  56. /**************************************************************************/  
  57. /*  The following defines are not configurable via the configurationfiles */
  58. /*  and must be given sensible values here                                */
  59. /**************************************************************************/  
  60.  
  61. /* In lib/parser/parsesetupfile.c:
  62.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. */
  64.  
  65. /* Where are the callback-setup files found ? */
  66. #define FIRSTSETUP       "/etc/callback.setup"
  67. #define SECONDSETUP       "/usr/etc/callback.setup"
  68. #define THIRDSETUP       "/usr/local/etc/callback.setup"
  69.  
  70. /* In lib/process/killinit.c:
  71.    ~~~~~~~~~~~~~~~~~~~~~~~~~~
  72. */
  73.  
  74. /* Process-id of init. Should be 1. */
  75. #define PID_INIT        1
  76.  
  77. /* In lib/process/modemrespawn.c:
  78.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  79. */
  80.  
  81. /*  Program to determine the running processes. */
  82. #define PSCMD            "ps -ax"
  83.  
  84. /*  In policy.h: 
  85.     ~~~~~~~~~~~~ 
  86.   
  87.     policy.h is the policy.h file used for compiling mgetty. The only
  88.     entry of this file that's used by callback is the NOLOGIN_FILE entry
  89.     either include your policy.h, or define NOLOGIN_FILE here, but make
  90.     sure the define used here matches the define in policy.h
  91.  
  92.     If that file exists, a ringing phone won't be answered (see manual).
  93.     "%s" will be replaced by the device name.
  94. */    
  95. #define NOLOGIN_FILE    "/etc/nologin.%s"
  96.  
  97.  
  98. #endif _configure_H_
  99.